/*
	  �������?
	ҹɫ��˷�����?	�Ӳ�֪��
	���������?	ɪ���������ᣬ
	ֻ���㣬
	��ϸ˵��
	�����ߡ�

            By Jungle Wei.

*/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <stdarg.h>

#ifdef _LINUX_
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <termios.h>
#include <assert.h>
#endif

#ifdef WIN32
#include <windows.h>
#include <io.h>
#endif

#include "kernel.h"
#include "icli.h"
#include "osp_common_def.h"
#include "pdt_common_inc.h"
#include "include/root.h"

using namespace std;

#ifdef __cplusplus
extern "C" {
#endif

int main(int argc, char *argv[])
{
	printf("====================================================="
		   "\r\nOnline Judge system start running...\r\n");

    extern ULONG APP_Startup();
	(VOID) APP_Startup();

	Sleep(1000);

	/* system configuration recover */
    extern void SYSMNG_CfgRecover();
    SYSMNG_CfgRecover();

	printf("Press any key to continue.\r\n");

    extern int g_system_runing;
	for (;g_system_runing == OS_YES;){
		Sleep(10);
	}

	return 0;
}
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */